package com.gin.kotlin.no_gay_alliance.database.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.gin.kotlin.no_gay_alliance.database.entity.BanKeyword

@Dao
interface BanKeywordDao {
    @Query("select * from BanKeyword")
    fun list(): List<BanKeyword>?

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun add(users: List<BanKeyword>)

    @Query("delete from BanKeyword where value=:keyword")
    fun del(keyword:String)

    @Query("delete from BanKeyword")
    fun clear()
}